<template>
  <div class="">
    <h2>自定义带Hover提示的按钮</h2>
    <!-- 当用户在使用我们封装的按钮的时候，需要向HintButton组件传递相应的参数 （el-button进行二次封装） -->
    <hintButton type="success" icon="el-icon-delete" size="mini" title="提示按钮" @click="Btn"/>
  </div>
</template>

<script>
import HintButton from "./HintButton";
export default {
  name: "AttrsListenersTest",
  components: { HintButton },
  props: {},
  data() {
    return {};
  },
  computed: {}, // 计算属性
  watch: {},
  created() {},
  mounted() {},
  methods: {
    Btn() {
      alert(1)
    }
  },
};
</script>

<style scoped></style>
